<?php /* Smarty version 2.6.22, created on 2009-05-22 17:33:09
         compiled from /home/renat/www/clean.ringo/www/control/_templates/pagemanager/headers.tpl */ ?>
<style><?php echo '
    .blabla td {background-color: white;}
    '; ?>

</style>
<form method="post">
<table class="blabla" cellspacing="1" cellpadding="3" align="Center" width="80%" style="border:1px; background-color:olive;">
<tr>
  <td colspan="5" align="center"><b>Подключаемые пакеты</b></td>
 <tr> <td> </td><td>Имя</td><td>Файлы</td><td>Зависимости</td><td>Ссылка</td></tr>
  <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['l']):
?>
    <tr><td><input type="checkbox" class="set_check" name="set[]" value="<?php echo $this->_tpl_vars['l']['id']; ?>
" <?php $_from = $this->_tpl_vars['selected']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sel']):
?><?php if ($this->_tpl_vars['sel'] == $this->_tpl_vars['l']['id']): ?>checked<?php endif; ?><?php endforeach; endif; unset($_from); ?>/></td><td><?php echo $this->_tpl_vars['l']['name']; ?>
</td><td>
        <?php $_from = $this->_tpl_vars['l']['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['floop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['floop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['f']):
        $this->_foreach['floop']['iteration']++;
?>
       <a href="<?php echo $this->_tpl_vars['f']['js']; ?>
<?php echo $this->_tpl_vars['f']['css']; ?>
" <?php  $file =$this->get_template_vars('f'); if($file['css'] && !file_exists($_SERVER['DOCUMENT_ROOT'].$file['css']) ) print "style='color:red'";  if($file['js'] && !file_exists($_SERVER['DOCUMENT_ROOT'].$file['js']) ) print "style='color:red'"; ?>><?php echo $this->_tpl_vars['f']['js']; ?>
<?php echo $this->_tpl_vars['f']['css']; ?>
</a> <?php if (! ($this->_foreach['floop']['iteration'] == $this->_foreach['floop']['total'])): ?>,<?php endif; ?>
        <?php endforeach; endif; unset($_from); ?>
    </td><td class="dep_td">
        <?php $_from = $this->_tpl_vars['l']['dependencies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
            <?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ll']):
?>
                <?php if ($this->_tpl_vars['ll']['id'] == $this->_tpl_vars['d']): ?><input type="hidden" name="dep[]" class="dep" value="<?php echo $this->_tpl_vars['ll']['id']; ?>
" rel="<?php echo $this->_tpl_vars['l']['id']; ?>
"/>[<?php echo $this->_tpl_vars['ll']['name']; ?>
] <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
        <?php endforeach; endif; unset($_from); ?>
    </td><td><a href="http://<?php echo $this->_tpl_vars['l']['link']; ?>
" target="_blank"><?php echo $this->_tpl_vars['l']['link']; ?>
</a></td></tr>
  <?php endforeach; endif; unset($_from); ?>
 </tr>
 <tr><td colspan="5" align="center"><input type="submit" name="submit" value="Сохранить"></td></tr>
</table>
</form>
<br><br>
<center>
    <a href="/control/page_management/?mode=manage_headers">Управление пакетами</a>
</center>